$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'rspec'
require '#{main}'

# extension modules for use in specs
Dir.glob(File.dirname(__FILE__) + '/shared/*.rb').each {|f| require f }

module SpecHelper
  def null_mock(name)
    mock name, :null => true
  end
end

Spec::Runner.configure do |config|
  config.include(SpecHelper)
end
